package com.ayu.shortlink.admin.dao.mapper;

import com.ayu.shortlink.admin.dao.entity.CouponTemplateDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CouponTemplateMapper extends BaseMapper<CouponTemplateDO> {

    Long increaseStock(@Param("shopNumber")String shopNumber,
                       @Param("couponTemplateId")String couponTemplateId,
                       @Param("stock")Integer stock);
}
